#include<stdio.h>
int main()
{
    int n,s=0;
    scanf("%d",&n);
    while(n!=250)
    {
        s++;
        scanf("%d",&n);
    }
    printf("%d",s+1);
    return 0;
}